//
//  My_editView.m
//  Bullet
//
//  Created by admin on 2019/8/14.
//  Copyright © 2019 . All rights reserved.
//

#import "My_editView.h"

@implementation My_editView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.my_edit_tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, KScreen_W, KScreen_H)];
        self.my_edit_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        self.my_edit_tableView.backgroundColor = viewback_black;
        self.my_edit_tableView.clipsToBounds = YES;
        [self addSubview:self.my_edit_tableView];
        self.my_edit_tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        
        self.nav_edit_title = [[UILabel alloc]initWithFrame:CGRectMake(100, kStatusBarHeight, KScreen_W-200, 44)];
        self.nav_edit_title.textColor = UIColor.whiteColor;
        self.nav_edit_title.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
        self.nav_edit_title.text = NSLocalizedString(@"编辑资料", nil);
        self.nav_edit_title.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.nav_edit_title];

        
        
        self.my_edit_tileArr = [[NSArray alloc]initWithObjects:@"昵称",@"性别",@"生日",@"地区",@"个性签名", nil];
        
        self.nav_edit_back = [[UIButton alloc]initWithFrame:CGRectMake(11, kStatusBarHeight, 44, 44)];
        [self.nav_edit_back setImage:KImageNamed(@"ico_nav_back_wite") forState:UIControlStateNormal];
        [self addSubview:self.nav_edit_back];
        
        
//        for (int i=0; i<titleArr.count; i++) {
//            UILabel * titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, kStatusBarHeight+44+20+40*i, KScreen_W*0.2, 40)];
//            titleLabel.font = [UIFont systemFontOfSize:13];
//            titleLabel.textColor = [UIColor whiteColor];
//            titleLabel.text = titleArr[i];
//            [self addSubview:titleLabel];
//        }
//        
//        self.my_edit_btn = [[UIButton alloc]initWithFrame:CGRectMake(Ratio(15), KScreen_H-KNav_H-KSafeAreaBottomHeight-Ratio(47), Ratio(345), Ratio(45))];
//        [self addSubview:self.my_edit_btn];
//        
//        self.my_edit_genderBtn = [[my_editButton alloc]initWithFrame:CGRectMake(KScreen_W*0.2+20+40, 40, KScreen_W-(KScreen_W*0.2-20), 40)];
//        [self addSubview:self.my_edit_genderBtn];
//        
//        
//        self.my_edit_areaBtn = [[my_editButton alloc]initWithFrame:CGRectMake(KScreen_W*0.2+20+80, 40, KScreen_W-(KScreen_W*0.2-20), 40)];
//        [self addSubview:self.my_edit_areaBtn];
//        
//        
//        self.my_edit_NameBtn = [[my_editButton alloc]initWithFrame:CGRectMake(KScreen_W*0.2+20+120, 40, KScreen_W-(KScreen_W*0.2-20), 40)];
//        [self addSubview:self.my_edit_NameBtn];
        
        
        
    
        
//        self.view_backView.view_title.attributedText = [[NSMutableAttributedString alloc] initWithString:NSLocalizedString(@"编辑资料", nil) attributes:@{NSFontAttributeName: [UIFont fontWithName:@"Helvetica-Bold" size: 17],NSForegroundColorAttributeName: [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0]}];
//        self.view_backView.view_rightBtn.hidden = NO;
//        [self.view_backView.view_rightBtn setTitle:NSLocalizedString(@"保存", nil) forState:UIControlStateNormal];
        
    UIButton * textShowButtonTo1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        NSString * textShowButtonTitleTo1 = @"测试功能";
        [textShowButtonTo1 setTitle:textShowButtonTitleTo1 forState:UIControlStateNormal];
        NSInteger textShowArcTo1 = arc4random_uniform(22);
        NSLog(@"随机数：%ld", (long)textShowArcTo1);
    }
    return self;
}

@end
